<template>
  <div>
    <h1>{{msg}}</h1>
    <button @click="aa">测试跨域</button>
  </div>
</template>
<script>
export default {
  name:'Login',
  data(){
    return{
      msg:"测试成功！！！"
    }
  },
  methods: {
    aa(){
      this.axios.get('/api/fronttest')
      .then(response => (this.info = response.data))
      .catch(function (error){
        console.log(error)
      })
    }
  }
}
</script>
